class inch(float):
    def __new__(cls,arg=0.0):
        return float.__new__(cls, arg*0.0254)
    def __add__(self,other):
        if type(other) == type(self):
            return float.__new__(self.__class__,self.__float__() + self.__float__())
    def __mul__( self, other):
        if type(other) == type(1):
            return float.__new__(self.__class__,self.__float__() * other)

a = inch(4)

print type(a+a), a+a
print type(a*2), a*2
print type(2*a), 2*a

import NodeAPI

print NodeAPI.__doc__